package cyc.learn.mode.decorator;

import cyc.learn.mode.decorator.demo2.AbsChineseHamburger;
import cyc.learn.mode.decorator.demo2.ChineseHamburger;
import cyc.learn.mode.decorator.demo2.EggDecorate;
import cyc.learn.mode.decorator.demo2.TenderloinDecorate;

public class Demo2Test {
    public static void main(String[] args) {
        AbsChineseHamburger ch = new ChineseHamburger();
        ch = new EggDecorate(ch);
        ch = new TenderloinDecorate(ch);

        ch.cost();
    }
}
